Optimal. Leaf size=98 \[ -\frac {b^2 \cot (c+d x) \log (\cos (c+d x)) \sqrt {b \tan ^2(c+d x)}}{d}-\frac {b^2 \tan (c+d x) \sqrt {b \tan ^2(c+d x)}}{2 d}+\frac {b^2 \tan ^3(c+d x) \sqrt {b \tan ^2(c+d x)}}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3739, 3554,
3556} \begin {gather*} -\frac {b^2 \tan (c+d x) \sqrt {b \tan ^2(c+d x)}}{2 d}+\frac {b^2 \tan ^3(c+d x) \sqrt {b \tan ^2(c+d x)}}{4 d}-\frac {b^2 \cot (c+d x) \sqrt {b \tan ^2(c+d x)} \log (\cos (c+d x))}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3554
Rule 3556
Rule 3739
Rubi steps
\begin {align*} \int \left (b \tan ^2(c+d x)\right )^{5/2} \, dx &=\left (b^2 \cot (c+d x) \sqrt {b \tan ^2(c+d x)}\right ) \int \tan ^5(c+d x) \, dx\\ &=\frac {b^2 \tan ^3(c+d x) \sqrt {b \tan ^2(c+d x)}}{4 d}-\left (b^2 \cot (c+d x) \sqrt {b \tan ^2(c+d x)}\right ) \int \tan ^3(c+d x) \, dx\\ &=-\frac {b^2 \tan (c+d x) \sqrt {b \tan ^2(c+d x)}}{2 d}+\frac {b^2 \tan ^3(c+d x) \sqrt {b \tan ^2(c+d x)}}{4 d}+\left (b^2 \cot (c+d x) \sqrt {b \tan ^2(c+d x)}\right ) \int \tan (c+d x) \, dx\\ &=-\frac {b^2 \cot (c+d x) \log (\cos (c+d x)) \sqrt {b \tan ^2(c+d x)}}{d}-\frac {b^2 \tan (c+d x) \sqrt {b \tan ^2(c+d x)}}{2 d}+\frac {b^2 \tan ^3(c+d x) \sqrt {b \tan ^2(c+d x)}}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.40, size = 56, normalized size = 0.57 \begin {gather*} -\frac {\cot (c+d x) \left (-1+2 \cot ^2(c+d x)+4 \cot ^4(c+d x) \log (\cos (c+d x))\right ) \left (b \tan ^2(c+d x)\right )^{5/2}}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 58, normalized size = 0.59
method | result | size |
derivativedivides | \(\frac {\left (b \left (\tan ^{2}\left (d x +c \right )\right )\right )^{\frac {5}{2}} \left (\tan ^{4}\left (d x +c \right )-2 \left (\tan ^{2}\left (d x +c \right )\right )+2 \ln \left (1+\tan ^{2}\left (d x +c \right )\right )\right )}{4 d \tan \left (d x +c \right )^{5}}\) | \(58\) |
default | \(\frac {\left (b \left (\tan ^{2}\left (d x +c \right )\right )\right )^{\frac {5}{2}} \left (\tan ^{4}\left (d x +c \right )-2 \left (\tan ^{2}\left (d x +c \right )\right )+2 \ln \left (1+\tan ^{2}\left (d x +c \right )\right )\right )}{4 d \tan \left (d x +c \right )^{5}}\) | \(58\) |
risch | \(\frac {b^{2} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) \sqrt {-\frac {b \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{2}}{\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}}\, x}{{\mathrm e}^{2 i \left (d x +c \right )}-1}-\frac {2 b^{2} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) \sqrt {-\frac {b \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{2}}{\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}}\, \left (d x +c \right )}{\left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right ) d}-\frac {4 i b^{2} \sqrt {-\frac {b \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{2}}{\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}}\, \left ({\mathrm e}^{6 i \left (d x +c \right )}+{\mathrm e}^{4 i \left (d x +c \right )}+{\mathrm e}^{2 i \left (d x +c \right )}\right )}{\left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right ) \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{3} d}-\frac {i b^{2} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) \sqrt {-\frac {b \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{2}}{\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}}\, \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{\left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right ) d}\) | \(300\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 47, normalized size = 0.48 \begin {gather*} \frac {b^{\frac {5}{2}} \tan \left (d x + c\right )^{4} - 2 \, b^{\frac {5}{2}} \tan \left (d x + c\right )^{2} + 2 \, b^{\frac {5}{2}} \log \left (\tan \left (d x + c\right )^{2} + 1\right )}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 74, normalized size = 0.76 \begin {gather*} \frac {{\left (b^{2} \tan \left (d x + c\right )^{4} - 2 \, b^{2} \tan \left (d x + c\right )^{2} - 2 \, b^{2} \log \left (\frac {1}{\tan \left (d x + c\right )^{2} + 1}\right ) - 3 \, b^{2}\right )} \sqrt {b \tan \left (d x + c\right )^{2}}}{4 \, d \tan \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (b \tan ^{2}{\left (c + d x \right )}\right )^{\frac {5}{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 696 vs.
\(2 (88) = 176\).
time = 1.16, size = 696, normalized size = 7.10 \begin {gather*} -\frac {{\left (2 \, b^{2} \log \left (\frac {4 \, {\left (\tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 2 \, \tan \left (d x\right )^{3} \tan \left (c\right ) + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} - 2 \, \tan \left (d x\right ) \tan \left (c\right ) + 1\right )}}{\tan \left (c\right )^{2} + 1}\right ) \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{4} \tan \left (c\right )^{4} + 3 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{4} \tan \left (c\right )^{4} - 8 \, b^{2} \log \left (\frac {4 \, {\left (\tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 2 \, \tan \left (d x\right )^{3} \tan \left (c\right ) + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} - 2 \, \tan \left (d x\right ) \tan \left (c\right ) + 1\right )}}{\tan \left (c\right )^{2} + 1}\right ) \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{3} \tan \left (c\right )^{3} + 2 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 8 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{3} \tan \left (c\right )^{3} + 2 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{2} \tan \left (c\right )^{4} + 12 \, b^{2} \log \left (\frac {4 \, {\left (\tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 2 \, \tan \left (d x\right )^{3} \tan \left (c\right ) + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} - 2 \, \tan \left (d x\right ) \tan \left (c\right ) + 1\right )}}{\tan \left (c\right )^{2} + 1}\right ) \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{2} \tan \left (c\right )^{2} - b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{4} - 8 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{3} \tan \left (c\right ) + 4 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{2} \tan \left (c\right )^{2} - 8 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right ) \tan \left (c\right )^{3} - b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (c\right )^{4} - 8 \, b^{2} \log \left (\frac {4 \, {\left (\tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 2 \, \tan \left (d x\right )^{3} \tan \left (c\right ) + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} - 2 \, \tan \left (d x\right ) \tan \left (c\right ) + 1\right )}}{\tan \left (c\right )^{2} + 1}\right ) \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right ) \tan \left (c\right ) + 2 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right )^{2} - 8 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (d x\right ) \tan \left (c\right ) + 2 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) \tan \left (c\right )^{2} + 2 \, b^{2} \log \left (\frac {4 \, {\left (\tan \left (d x\right )^{4} \tan \left (c\right )^{2} - 2 \, \tan \left (d x\right )^{3} \tan \left (c\right ) + \tan \left (d x\right )^{2} \tan \left (c\right )^{2} + \tan \left (d x\right )^{2} - 2 \, \tan \left (d x\right ) \tan \left (c\right ) + 1\right )}}{\tan \left (c\right )^{2} + 1}\right ) \mathrm {sgn}\left (\tan \left (d x + c\right )\right ) + 3 \, b^{2} \mathrm {sgn}\left (\tan \left (d x + c\right )\right )\right )} \sqrt {b}}{4 \, {\left (d \tan \left (d x\right )^{4} \tan \left (c\right )^{4} - 4 \, d \tan \left (d x\right )^{3} \tan \left (c\right )^{3} + 6 \, d \tan \left (d x\right )^{2} \tan \left (c\right )^{2} - 4 \, d \tan \left (d x\right ) \tan \left (c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (b\,{\mathrm {tan}\left (c+d\,x\right )}^2\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________